define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//获取首页数据
			get_home: function(param, callback, error, done) {

				param = param || {}
				param.method = 'map.memdistribution.search';

				//post请求
				Http.post(param, callback, error, done);
			},
			get_local: function(param, callback, error, done) {
				
				param = param || {}
				param.method = 'position.getarea.location';
				//post请求
				Http.post(param, callback, error, done);
			},
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Findus", factory);
});